<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>



 

    <base href="<%=basePath%>">
    
    <title>欢迎登录客户资源管理系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <script type="text/javascript" src="jQuery .js"></script>
	<script type="text/javascript" src="css/bootstrap.js"></script>
    <link href="css/bootstrap.css" rel="stylesheet">

    <script language="javascript">
      function check(){
          if(form.Username.value==""){
          alert("请输入用户名！");
          form.username.focus();
          return false;
          }
          if(form.Password.value==""){
          alert("请输入密码！");
          form.Password.focus();
          return false;
          }
       
      }
     </script>
  </head>
	<body>
		<div id="login" style="margin: auto;width:900px">

			<br>
			<br>
			<br>
			<br>
			<h1 align="center">
				<strong>Welcome to business card management system</strong>
			</h1>
			<br />
		<br />	<br />


<div id="login2" style="margin: auto;width:800px">
<div style="width: 400px; float: left">
			<form class="form-horizontal" name="form" method=post
				action="check.jsp">
				<table  background="img/1.jpg"border="0"  width="300px"
					style="margin: auto; ">
					<tr  >
						<td  height="295px">

							<table border="0">
								<tbody>
									<tr>
										<td width="40%" align="right">
											<strong>UserName</strong>
										</td>

										<td height="80px">
											<div class="col-xs-12">
												<input name="Username" type="text" class="form-control">
											</div>
										</td>

									</tr>

									<tr>
										<td align="right">
											<strong>PassWord&nbsp;&nbsp;</strong>
										</td>
										<td height="80px">
											<div class="col-xs-12">
												<input name="Password" type="password" class="form-control">
											</div>
										</td>
									</tr>

									<tr>
										<td align="right">
											<strong>IdentifyCode</strong>
										</td>
										<td height="85px">
											<div class="col-xs-6">
												<input name="rand" type="text" class="form-control "
													value="">
											</div>
											<a href="login.jsp"
												onClick="javascript:var dt=new Date();document.getElementById('code').src='image.jsp?dt='+dt;"><img
													id="code" border="0" src="image.jsp"> </a>
										</td>
									</tr>

									<tr>
										<td height="50px" align="right">
											<input class="btn btn-primary" type="submit" name="submit"
												value="Login" id="submit">
										</td>
										<td align="center">
											<input class="btn btn-primary" type="reset" name="reset"
												value="Reset" id="reset">
										</td>
									</tr>

								</tbody>
							</table>

						</td>
					</tr>
				</table>

			</form>
			</div>
			<div style="width: 400px; float: right">
			<table background="img/2.jpg"border="0"width="390px"height="280px">
			<tr>
			<td></td>
			</tr>
			</table>
			</div>
			</div>
</div>
		

	</body>

</html>
